package org.javaboy.demo;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Demo02 {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(JavaConfig.class);
        ICalculatorImpl calculator = ctx.getBean(ICalculatorImpl.class);
        calculator.add(3, 4);
    }
}
